package com.zzh.net.response;

public class BaseResponse<T> {

    private int tag; // 返回的code
    private T data; // 具体的数据结果
    private String errMsg; // message 可用来返回接口的说明


    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }


    @Override
    public String toString() {
        return "BaseResponse{" +
                "tag=" + tag +
                ", data=" + data +
                ", errMsg='" + errMsg + '\'' +
                '}';
    }
}
